﻿using System;
using Terraria.UI;

namespace Terraria.ModLoader.UI
{
	// Token: 0x02000278 RID: 632
	internal class UIBuildMod : UIState, ModCompile.IBuildStatus
	{
		// Token: 0x060019F6 RID: 6646 RVA: 0x00427198 File Offset: 0x00425398
		public override void OnInitialize()
		{
			this.loadProgress = new UILoadProgress();
			this.loadProgress.Width.Set(0f, 0.8f);
			this.loadProgress.MaxWidth.Set(600f, 0f);
			this.loadProgress.Height.Set(150f, 0f);
			this.loadProgress.HAlign = 0.5f;
			this.loadProgress.VAlign = 0.5f;
			this.loadProgress.Top.Set(10f, 0f);
			base.Append(this.loadProgress);
		}

		// Token: 0x060019F7 RID: 6647 RVA: 0x00012609 File Offset: 0x00010809
		public void SetProgress(int num, int max)
		{
			this.loadProgress.SetProgress((float)num / (float)max);
		}

		// Token: 0x060019F8 RID: 6648 RVA: 0x0001261B File Offset: 0x0001081B
		public void SetStatus(string msg)
		{
			this.loadProgress.SetText(msg);
		}

		// Token: 0x04001753 RID: 5971
		private UILoadProgress loadProgress;
	}
}
